package com.finance.system.support.bean;

/**
 * 返回给前端的结果集
 * Created by TENGFEI on 2018/1/7.
 */
public class ResultBean<T> {
    private int code;
    private String msg;
    private T bean;


    public static <T> ResultBean<T> create(int code,String msg,T bean){
        return new ResultBean<T>(code,msg,bean);
    }

    public ResultBean(int code, String msg, T bean) {
        this.code = code;
        this.msg = msg;
        this.bean = bean;
    }

    public int getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }

    public T getBean() {
        return bean;
    }
}
